<template>
  <div class="home">
    <h1>{{ msg }}</h1>
    <h2>Essential home</h2>
    <div @click="gologin"> go login</div>
  </div>
</template>

<script>
export default {
  name: 'home',
  data () {
    return {
      msg: 'HOME'
    }
  },
  methods: {
    gologin () {
      this.$router.push({ path: 'login' })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .home{
    background: #ccc;
  }
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
